import path from 'path';
export default function chainWebpack(config) {
  config.module
    .rule()
    .test(/\.tsx?$/)
    .use('awesome-typescript-loader')
    .loader('awesome-typescript-loader')
    .options({ transpileOnly: true });
  // config.module.rule().test(/\.tsx?$/).exclude.add([path.resolve('../src/pages/.umi'), path.resolve('node_modules')]).end().use('ts-loader').loader('ts-loader');
}
